Skip to content

feat(mag_calibration): always use WMM if possible#26912

Closed
bresch wants to merge 2 commits intomainfrom
pr-mag_cal_rad
Closed

feat(mag_calibration): always use WMM if possible#26912
bresch wants to merge 2 commits intomainfrom
pr-mag_cal_rad

Conversation

@bresch
Copy link
Copy Markdown
Member

@bresch bresch commented Mar 31, 2026

Solved Problem

When the raw mag data has relatively large scale factors, the sphere fit returns a radius smaller than the true magnetic field norm. This lead to a sub-optimal ellipsoid fit.

Solution

if the mag field strength can be obtained through the WMM, use it to perform the ellipsiod fit.

Changelog Entry

For release notes:

Improve mag calibration when GNSS is available
New parameter: -
Documentation: -

@bresch bresch self-assigned this Mar 31, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 31, 2026

💡 Commit messages could be improved

Not blocking, but these commit messages could use some cleanup.

Commit Message Suggestion
5d766d14ef chore: return source of expected mag strength for mag cal Missing conventional commit format (e.g. "feat(ekf2): add something")
3532116ed5 feat(mag cal): override sphere radius with WMM if available Missing conventional commit format (e.g. "feat(ekf2): add something")

See the commit message convention for details.


This comment will be automatically removed once the issues are resolved.

@bresch bresch changed the title Mag_calibration: always use WMM if possible feat(mag_calibration): always use WMM if possible Mar 31, 2026
@github-actions
Copy link
Copy Markdown

❌ PR title needs conventional commit format

Expected format: type(scope): description (conventional commits).

Your title:

Mag_calibration: always use WMM if possible

Suggested fix:

feat(mag_calibration): always use WMM if possible

To fix this: click the ✏️ next to the PR title at the top of this page and update it.

See CONTRIBUTING.md for details.


This comment will be automatically removed once the issue is resolved.

@bresch
Copy link
Copy Markdown
Member Author

bresch commented Mar 31, 2026

Closing as it apparently gives worse results if the actual field is too far from the WMM

@bresch bresch closed this Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant